<template>
  <div class="time-lime-wrap">
    <div class="item-wrap" v-for="(item, index) in timeLine" :key="index">
      <img class="dian" :src="item.completionStatus ? require('./img/dui.png') : require('./img/quan.png')" />
      <div class="status" :style="{ 'color': item.completionStatus ? '#333' : '#909399'}">{{ item.progressDesc }}</div>
      <div class="time">{{ item.timeStr }}</div>
    </div>
  </div>
</template>
<script>
export default {
    name: 'HtimeLine', // 横向时间轴
    props: ['timeLine']
}
</script>

<style lang="scss">
  .time-lime-wrap{
    display: flex;
    flex: 1;
    .item-wrap {
      border-top: 1px dotted #c4c4c4;
      padding-right: 20px;
      margin-top: -10px;
      min-width: 118px;
      .dian {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        margin-top: -25px;
        margin-left: -2px;
        background: #ffffff;
      }
      .status {
        color: #333;
        font-size: 14px;
        line-height: 22px;
      }
      .time {
        color: #909399;
        font-size: 12px;
        line-height: 22px;
      }
    }
    .item-wrap:last-child {
      border: none;
    }
  }
  
</style>